package com.qf.order.controller;


import com.qf.order.entity.TbOrder;
import com.qf.order.service.ITbOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhu
 * @since 2022-03-02
 */
@RestController
@RequestMapping("/order/")
public class TbOrderController {

    @Autowired
    private ITbOrderService orderService;


    @RequestMapping("findById/{id}")
    public TbOrder findById(@PathVariable String id){

       return  orderService.getById(id);
    }


}
